package club.easin.product.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import club.easin.product.bean.Fault;
import club.easin.product.dao.FaultRepository;
import club.easin.product.service.FaultService;

@Service
public class FaultServiceImpl implements FaultService{
	
	@Autowired
	private FaultRepository faultRepository;

	@Override
	public List<Map<String,Object>> getFalultByPhenomenon(String phenomenon,String rangeName) {
		// TODO Auto-generated method stub
		return this.faultRepository.getFalultByPhenomenon(phenomenon,rangeName);
	}

	@Override
	public List<Map<String, Object>> getReasonAndWay(String type) {
		// TODO Auto-generated method stub
		return this.faultRepository.getReasonAndWay(type);
	}

}
